<%--
  Created by IntelliJ IDEA.
  User: 娇娇美女
  Date: 2021/11/11
  Time: 9:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>首页</title>
  <style>
  </style>
</head>
<body>
<div id="title"></div>
<div id="table">
  <table border="1px">
    <h3>驾校查询</h3>
    <div>城区:
      <select name="city">
        <c:forEach items="${searchList}" var="slist">
          <option value="${slist.id}">${slist.name}</option>
        </c:forEach>
      </select>
      <input type="button" value="查询"/></div>
    <tr>
      <th>
        驾校名称
      </th>
      <th>所在城区</th>
      <th>地址</th>
      <th>联系电话</th>
      <th>修改</th>
    </tr>
    <c:forEach var="dslist" items="${driveSchoollist}">
      <tr>
        <td>${dslist.name}</td>
        <td>${dslist.cName}</td>
        <td>${dslist.address}</td>
        <td>${dslist.phone}</td>
        <td><a href="Update.jsp">修改</a></td>
      </tr>
    </c:forEach>

  </table>
  <p>一共${p.pages}页</p>
  <a href="info?page=${p.firstPage}">第一页</a>
  <a href="${pageContext.request.contextPath }/info?page=${p.nextPage}">下一页</a>
  <a href="${pageContext.request.contextPath }/info?page=${p.prePage}">上一页</a>
  <a href="${pageContext.request.contextPath }/info?page=${p.lastPage}">最后页</a>
</div>
</body>
</html>
<%--<script src="${pageContext.request.contextPath }/statics/js/jquery.min.js"></script>--%>
<script>

</script>
